/*
 * kProcessorManager.h
 *
 *  Created on: Mar 16, 2012
 *      Author: kylintse
 */

#ifndef KPROCESSORMANAGER_H_
#define KPROCESSORMANAGER_H_

#include <QtCore>

class kProcessManager : public QThread
{
	Q_OBJECT
public:
	kProcessManager(bool debug);
	virtual ~kProcessManager();

protected:
	virtual void run();

protected slots:
	void restartProcMpr310(int,QProcess::ExitStatus);
	void restartProcSwitch(int,QProcess::ExitStatus);

private:
	QProcessEnvironment m_env;
	QProcess* m_procMpr310;
	QString m_mpr310Program;
	QStringList m_argvMpr310;

	QProcess* m_procSwitch;
	QString m_switchProgram;
	QStringList m_argvSwitch;

	bool m_debug;
};

#endif /* KPROCESSORMANAGER_H_ */
